<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<div class="pageContent">
	<form method="post" action="${rootUrl}/seller/express/${express.id}" class="pageForm required-validate" onsubmit="return validateCallback(this, editDialogAjaxDone);">
		 <c:if test="${express.id != 0 && express.id != '' }"><input type="hidden" name="_method" value="put"></c:if>
		<input type="hidden" name="express.id" value="${express.id }"> 
		<input type="hidden" name="seller.id" value="${seller.id}">
		<div class="pageFormContent" layoutH="56">
			<p >
			     <label>快递名称：</label>
				<input name="express.id"  type="hidden" size="30" value="${express.id }" />
				<input name="express.name" class="required" readonly="readonly" type="text" size="30" value="${express.name }" />
				<a class="btnLook" href="${rootUrl}/seller/express-company/1/dialog" width="1000" height="600" lookupGroup="express"></a>
			</p> 
			<p >
			     <label>快递编码：</label>
				<input name="express.id"  type="hidden"  size="30" value="${express.id }" />
				<input name="express.code" class="required" type="text" readonly="readonly" size="30" value="${express.code }" />
			</p> 
			<p>
				<label>商家名称：</label>
				<input  name="express.seller.name" class="required" readonly="readonly" type="text" size="30" value="${seller.name}"/>
			</p>
			<p>
			     <label>默认首重(克)：</label>
				<input name="express.first"  class="required number" type="text" size="30" value="${express.first }" />
			</p>
			<p>
				<label>默认首重价格：</label>
				<input name="theFirstPrice" class="required number" type="text" size="30" value="<fmt:formatNumber value="${express.firstPrice/100}" pattern="0.00"/>" onfocus="if (value =='0.00'){value =''}"  
            		onblur="if (value ==''){value='0.00'}"/>
			</p>
				<p>
			     <label>默认续重(克)：</label>
				<input name="express.additional"  class="required number" type="text" size="30" value="${express.additional }" />
			</p>
			<p>
				<label>默认续重价格：</label>
				<input name="theAdditionalPrice"  class="required number" type="text" size="30" value="<fmt:formatNumber value="${express.additionalPrice/100}" pattern="0.00"/>" onfocus="if (value =='0.00'){value =''}"  
            		onblur="if (value ==''){value='0.00'}"/>
			</p>
			<p>
			    <label>状态：</label>
				<select name="express.state" class="required combox" >
				    <option <c:if test="${express.state == 1}">selected="selected"</c:if> value="1">启用</option>
					<option <c:if test="${express.state == 0}">selected="selected"</c:if> value="0">停用</option>
				</select>
			</p>
			<p>
			    <label>是否默认：</label>
				<select name="express.isDefault" class="required combox" >
					<option <c:if test="${express.isDefault == 0}">selected="selected"</c:if> value="0">否</option>
				    <option <c:if test="${express.isDefault == 1}">selected="selected"</c:if> value="1">是</option>
				</select>
			</p>
   		 </div>
    	<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button id="theSubmit" type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
    </form>
    </div>